package cn.wolfcode.crm.query;

import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang.time.DateUtils;

import java.util.Date;

@Setter@Getter
public class RechargeQueryObject extends  QueryObject{
    private int lateDays;
    private String keyword;
    public String getKeyword(){
        if(keyword!=null&&!"".equals(keyword.trim())){
            return keyword;
        }else{
            return null;
        }
    }
    public Date getComparedDate(){
        Date date = DateUtils.addDays(new Date(), lateDays);
        return date;
    }
}
